﻿using System;
using SharpSqlAnalyzer.nodes;

namespace SharpSqlAnalyzer.stmt.oracle
{
	// Token: 0x02000131 RID: 305
	public class TOracleCreateSequenceStmt : TCustomOracleSqlStmt
	{
		// Token: 0x060009D8 RID: 2520 RVA: 0x00303EFA File Offset: 0x003020FA
		public TOracleCreateSequenceStmt(EDbVendor dbvendor) : base(dbvendor)
		{
			this.sqlstatementtype = ESqlStatementType.sstoraclecreatesequence;
		}

		// Token: 0x060009D9 RID: 2521 RVA: 0x00303F0E File Offset: 0x0030210E
		internal override void buildsql()
		{
		}

		// Token: 0x060009DA RID: 2522 RVA: 0x00303F10 File Offset: 0x00302110
		internal override void clear()
		{
		}

		// Token: 0x060009DB RID: 2523 RVA: 0x00303F12 File Offset: 0x00302112
		internal override string getasprettytext()
		{
			return "";
		}

		// Token: 0x060009DC RID: 2524 RVA: 0x00303F19 File Offset: 0x00302119
		internal override void iterate(TVisitorAbs pvisitor)
		{
		}

		// Token: 0x170001BD RID: 445
		// (get) Token: 0x060009DD RID: 2525 RVA: 0x00303F1B File Offset: 0x0030211B
		public virtual TTypeName Data_type
		{
			get
			{
				return this.data_type;
			}
		}

		// Token: 0x170001BE RID: 446
		// (get) Token: 0x060009DE RID: 2526 RVA: 0x00303F23 File Offset: 0x00302123
		public virtual TDummyList Options
		{
			get
			{
				return this.options;
			}
		}

		// Token: 0x170001BF RID: 447
		// (get) Token: 0x060009DF RID: 2527 RVA: 0x00303F2B File Offset: 0x0030212B
		public virtual TObjectName SequenceName
		{
			get
			{
				return this.sequenceName;
			}
		}

		// Token: 0x060009E0 RID: 2528 RVA: 0x00303F34 File Offset: 0x00302134
		public override int doParseStatement(TCustomSqlStatement psql)
		{
			if (this.rootNode == null)
			{
				return -1;
			}
			base.doParseStatement(psql);
			TCreateSequenceSqlNode tcreateSequenceSqlNode = (TCreateSequenceSqlNode)this.rootNode;
			this.sequenceName = tcreateSequenceSqlNode.SequenceName;
			base.DatabaseObjects.Add(this.sequenceName);
			this.data_type = tcreateSequenceSqlNode.Data_type;
			return 0;
		}

		// Token: 0x0400125C RID: 4700
		private TObjectName sequenceName;

		// Token: 0x0400125D RID: 4701
		private TDummyList options;

		// Token: 0x0400125E RID: 4702
		private TTypeName data_type;
	}
}
